home *** CD-ROM | disk | FTP | other *** search
- Path: news.mtu.edu!not-for-mail
- From: sjang@mtu.edu (Saurabh Jang)
- Newsgroups: comp.lang.c++
- Subject: Question on null pointers
- Date: 4 Jan 1996 18:47:50 -0500
- Organization: Michigan Technological University
- Message-ID: <4chov6$ms@tamarack.cs.mtu.edu>
- NNTP-Posting-Host: tamarack.cs.mtu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi,
-
- ANSI C clearly allows constructs of the form
-
- if ( p ) or if ( !p ) where p is a pointer variable. Is this legal in ANSI C++?
- Or is the preferred style if ( p != 0 ) or if ( p != NULL ) ?
-
- Reading the ARM I felt that this topic was left ambiguous. Or did I miss
- something?
-
-
- --
- Saurabh Jang e-mail: sjang@cs.mtu.edu
- MSCS Student www : http://www.cs.mtu.edu/grads/Jang/Home.html
- Michigan Tech work #: (906)487-2839
-